package name.huzhenbo.java.patterns.singleton;

/**
 * Safe but not lazy initialization.
 */
class NormalStaticSingleton {
    private static NormalStaticSingleton instance = new NormalStaticSingleton();
    private int creationCount = 0;

    private NormalStaticSingleton() {
        creationCount++;
    }

    public static NormalStaticSingleton getInstance() {
        return instance;
    }

    public int getCreationCount() {
        return creationCount;
    }
}
